
import { Module } from 'vuex'
import { RootStateType } from '../index'
export interface HomeStateType {
    name: string
}

const homeModule: Module<HomeStateType, RootStateType> = {
  namespaced: true,
  state: () => ({
    name: 'jack'
  }),
  mutations: {
    changeName (state: HomeStateType, payload: string) {
      state.name = payload
    }
  },
  actions: {

  },
  getters: {

  }
}

export default homeModule
